//输入10个数,求其平均值,最大值
package ZUOYE0420;

import java.util.Scanner;

public class 作业十二 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		double max = 0;
		int a = 0;
		double b1 = 0;
		while (a < 10) {
			a++;
			System.out.println("请输入第" + a + "个数：");
			double b = in.nextDouble();
			if (max <= b) {
				max = b;
			}
			b1 = b1 + b;
		}
		System.out.println("平均值为：" + b1 / 10);
		System.out.println("最大值为" + max);
	}

}
